package com.example.havi.helper;
/**
 * 聊天消息列表类型
 */
public class MessageTypes {

    /*----------------------聊天列表的itemType类型----------------------------*/
    public static final int TXT_RECEIVE = 0;    //文字接收
    public static final int TXT_SEND = 1;       //文字发送

    public static final int IMAGE_RECEIVE = 2;  //图片接收
    public static final int IMAGE_SEND = 3;     //图片发送

    public static final int VOICE_RECEIVE = 4;  //语音接收
    public static final int VOICE_SEND = 5;     //语音发送

    public static final int VIDEO_RECEIVE = 6;  //视频接收
    public static final int VIDEO_SEND =7;      //视频发送

    public static final int FILE_RECEIVE = 8;   //文件接收
    public static final int FILE_SEND = 9;      //文件发送

    public static final int LOCATION_RECEIVE = 10;  //位置接收
    public static final int LOCATION_SEND = 11;     //位置发送

    public static final int CARD_SEND= 13;      //自定义消息类型-名片发送
    public static final int CARD_RECEIVE = 14;  //自定义消息类型-名片接收


    /*----------------------自定义的消息发送类型 以下要与ios对应----------------------------*/
    //说明：自定义消息类型基于环信自带的文本类型加扩展字段实现,以下类型设置在ext的customMessageType中标识属于环信自带类型和自定义类型来展示
    //例： ext{"userId":"123","nickName":"123","avatar":"123","customMessageType":"1","groupAvatar":"1","groupName":"1"}
    //自定义的消息内容是json串，也是通过messageBody传输
    //例：名片的 {"userId":"123","nickName":"啊三","avatar":"http://hihdfk","company":"碎星科技","job":"软件测试"}

    public static final String BASIC_MESSAGE = "0";  //标识环信自带类型
    public static final String CARD_MESSAGE = "1";  //标识其他自定义消息发送类型-名片
}
